package com.yb.shiro.server.common;

/**
 * Description: jwt相关的字段
 * @author biaoyang
 * date 2019/4/28 002810:12
 */
public class JwtDic {

    /**授权者*/
    public static final String ISS = "yangbiao";
    /**鉴权者*/
    public static final String AUD = "biaoyang";
    /**accessToken过期时间*/
    public static final int ACCESS_EXPIRATION_SECONDS = 30*60;
    /**refreshToken过期时间*/
    public static final int REFRESH_EXPIRATION_SECONDS = 7*24*60*60;
    /**ROLE_这个是只有spring security才需要的(拼接的)*/
    public static final String SECURITY_ROLE_PREFIX = "ROLE_";
    /**myJti*/
    public static final String REDIS_SET_JTI_KEY = "myJti";
    /**Authorization*/
    public static final String HEADERS_NAME = "Authorization";
    /**ACCESS_TOKEN*/
    public static final String ACCESS_TOKEN = "access_token";
    /**Bearer */
    public static final String HEADERS_VALUE_PREFIX = "Bearer ";
    //JwtBase64SecretYes
    /**Base64编码的secret*/
    public static final String BASE64_ENCODE_SECRET = "Snd0QmFzZTY0U2VjcmV0WWVz";

}
